package com.yungu.swift.report.service.impl;

import com.yungu.swift.base.ResponseData;
import com.yungu.swift.base.mapper.IMapper;
import com.yungu.swift.base.model.admin.AdminReportParam;
import com.yungu.swift.report.base.service.impl.BaseServiceImpl;
import com.yungu.swift.report.dao.ReportOrderAllocateDayDao;
import com.yungu.swift.report.entity.ReportOrderAllocateDay;
import com.yungu.swift.report.service.OrderAllocateDayService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.Map;


/**
 * ReportOrderAllocateDayServiceImpl
 **/

@Component
public class OrderAllocateDayServiceImpl extends BaseServiceImpl<ReportOrderAllocateDay> implements OrderAllocateDayService {

    @Autowired
    private ReportOrderAllocateDayDao<ReportOrderAllocateDay> reportOrderAllocateDayDao;

    @Override
    public IMapper<ReportOrderAllocateDay> getMapper() {
        return reportOrderAllocateDayDao;
    }

    @Override
    public ResponseData<ReportOrderAllocateDay> getTotal(AdminReportParam reportParam) {
        return ResponseData.buildSuccessResponse(reportOrderAllocateDayDao.getTotal(reportParam));
    }
}